import request from '@/utils/request'

// 查询维修预约列表
export function listFwAppointment(query) {
  return request({
    url: '/device/fwAppointment/list',
    method: 'get',
    params: query
  })
}

// 查询维修预约详细
export function getFwAppointment(id) {
  return request({
    url: '/device/fwAppointment/' + id,
    method: 'get'
  })
}

// 新增维修预约
export function addFwAppointment(data) {
  return request({
    url: '/device/fwAppointment',
    method: 'post',
    data: data
  })
}

// 修改维修预约
export function updateFwAppointment(data) {
  return request({
    url: '/device/fwAppointment',
    method: 'put',
    data: data
  })
}

// 删除维修预约
export function delFwAppointment(id) {
  return request({
    url: '/device/fwAppointment/' + id,
    method: 'delete'
  })
}
